<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<script type="text/javascript" src="/telmarket-web/js/jquery.js"></script>
<script type="text/javascript" src="/telmarket-web/js/jquery.form.js"></script>
<script type="text/javascript" src="/telmarket-web/js/jquery.json.js"></script>
<script type="text/javascript">
	//prepare the form when the DOM is ready 
	$(document).ready(function() {
		// bind form using ajaxForm 
			$('#publishcommentform').ajaxForm( {
				// dataType identifies the expected content type of the server response 
				dataType : 'json',

				// success identifies the function to invoke when the server response 
				// has been received 
				success : processJson
			});
		});
	function processJson(data) { 
	    // 'data' is the json object returned from the server 
	    alert($.toJSON(data));
	}
</script>

</head>
<body>

<form id="publishcommentform" action="publishComment" method="post">
<input type="hidden" id="userId" name="userId" value="18908201001" />
昵称：<input type="text" id="nickName" name="nickName" /> 评论：<input
	type="text" id="comment" name="comment" /> <input type="hidden"
	id="serviceCode" name="serviceCode" value="100001" /> <input
	type="submit" name="提交" /></form>
</body>
</html>